mediaFoundationWriterStreamSetInputMediaType
Type
command
Summary
Set the input media type of a stream of a writer Platform:desktop
Syntax
mediaFoundationWriterStreamSetInputMediaType <pFilePath>, <pStreamIndex>, <pMediaTypeID>
Description
The writer must already be created with mediaFoundationCreateWriter. This command sets the media type that the writer will expect the samples written to the stream to be in.
*Note
*:See the mediaFoundationTranscode documentation for a complete example of using this handler.
Parameters
Name | Type | Description |
---|---|---|
pFilePath | string | The path to a media file |
pStreamIndex | integer | An integer between 1 and the number of streams |
pMediaTypeID | integer | A media type ID |
Related
command: mediaFoundationTranscode, mediaFoundationCreateWriter
Compatibility and Support
OS
windows